package org.john.auth.client.context;

import java.io.Serializable;
import java.util.List;

import org.john.auth.client.model.type.Role;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class UserContext implements Serializable {
	private static final long serialVersionUID = -1704620962005672531L;
	/** 唯一id（redis记录用的） */
	private String uniqueId;
	/** 用户id */
	private Long userId;
	/** 角色 */
	private Role role;
	/** 拥有权限 */
	private List<String> jurisdiction;
	/** 签发时间 */
	private long issuedAt;
	/** 过期时间 */
	private long expireTime;
}
